package com.laowang.project.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 公告信息对象 my_backstage_notice
 *
 * @author laowang
 * @date 2023-06-21
 */
@NoArgsConstructor
@Data
public class MyBackstageNotice implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 公告标题
     */
    @Excel(name = "公告标题")
    @ApiModelProperty(value = "公告标题", required = false)
    private String title;

    /**
     * 公告内容
     */
    @Excel(name = "公告内容")
    @ApiModelProperty(value = "公告内容", required = false)
    private String content;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间", required = false)
    private Date ctime;

    /**
     * 到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "到期时间", required = false)
    private Date utime;

    /**
     * 文章排序  从小到大
     */
    @Excel(name = "文章排序  从小到大")
    @ApiModelProperty(value = "文章排序  从小到大", required = false)
    private Integer sort;

    /**
     * 1 发布  2 不发布
     */
    @Excel(name = "1 发布  2 不发布")
    @ApiModelProperty(value = "1 发布  2 不发布", required = false)
    private Integer isPub;

    /**
     * 软删除位置  有时间代表删除
     */
    @Excel(name = "软删除位置  有时间代表删除")
    @ApiModelProperty(value = "软删除位置  有时间代表删除", required = false)
    private Integer isdel;


}
